package day2;

public class chongzaiexercise {
    public static void main(String[] args) {
        byte a = 5;byte b = 10;
        System.out.println(issame(a,b));
        System.out.println(issame((short)20,(short)25));
        System.out.println(issame(30,30));
        System.out.println(issame(15L,15L));
    }

    public static boolean issame(byte a, byte b) {
        if (a == b) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean issame(short a, short b) {
        boolean same = a == b ? true : false;
        return same;
    }

    public static boolean issame(int a, int b) {
        return a == b;
    }

    public static boolean issame(long a, long b) {
        return a == b;
    }
}
